Skip to content

Fix non working update dynamic settings #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2015
Merged

Fix non working update dynamic settings #203

merged 1 commit into from
Apr 29, 2015

Conversation

dadoonet
Copy link
Member

Described in elastic/elasticsearch#10614, it's not possible with cloud discovery plugin to update dynamic settings anymore.

curl -XPUT localhost:9200/_cluster/settings -d '{
    "persistent" : {
        "discovery.zen.minimum_master_nodes" : 3
    },
    "transient" : {
        "discovery.zen.minimum_master_nodes" : 3
    }
}'

gives

{"acknowledged":true,"persistent":{},"transient":{}}

This patch makes that working again.

@dadoonet dadoonet self-assigned this Apr 21, 2015
@dadoonet dadoonet added this to the 2.5.1 milestone Apr 21, 2015
@dadoonet
Copy link
Member Author

@imotov Could you review this PR please?

@imotov
Copy link
Contributor

imotov commented Apr 24, 2015

This change looks good to me, but I am wondering if we can somehow prevent this from happening in the future.

@imotov
Copy link
Contributor

imotov commented Apr 24, 2015

I have created PR that shows one possible way to prevent it. Not sure that it's the best way though.

Described in elastic/elasticsearch#10614, it's not possible with cloud discovery plugin to update dynamic settings anymore.

```sh
curl -XPUT localhost:9200/_cluster/settings -d '{
    "persistent" : {
        "discovery.zen.minimum_master_nodes" : 3
    },
    "transient" : {
        "discovery.zen.minimum_master_nodes" : 3
    }
}'
```

gives

```json
{"acknowledged":true,"persistent":{},"transient":{}}
```

This patch makes that working again.
@dadoonet dadoonet merged commit 37d6897 into elastic:es-1.5 Apr 29, 2015
@dadoonet dadoonet deleted the pr/fix-update-settings branch April 29, 2015 11:52
dadoonet referenced this pull request May 28, 2015
Described in elastic/elasticsearch#10614, it's not possible with cloud discovery plugin to update dynamic settings anymore.

```sh
curl -XPUT localhost:9200/_cluster/settings -d '{
    "persistent" : {
        "discovery.zen.minimum_master_nodes" : 3
    },
    "transient" : {
        "discovery.zen.minimum_master_nodes" : 3
    }
}'
```

gives

```json
{"acknowledged":true,"persistent":{},"transient":{}}
```

This patch makes that working again.

(cherry picked from commit 37d6897)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants